package com.design.bridge.message;

/**
 * 抽象消息类
 */
public class AbstractMessage {

    private Message message;

    public AbstractMessage(Message message) {
        this.message = message;
    }

    /**
     * 发送消息委派给实现方法
     * @param message
     * @param toUser
     */
    public void sendMessage(String message, String toUser) {
        this.message.send(message, toUser);
    }
}
